<div class="row">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li>
				<a href="#" onclick="toHome()">
					主页
				</a>
			</li>
			<li>
				<a href="#" class="toList" onclick="toMovieSeat()">
					电影座位列表 
				</a>
			</li>
			<li class="active">
				电影座位详情
			</li>
		</ol>
	</div>
</div>
<form role="form" class="form-horizontal">
	<div class="row page-cont">
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 cont-top">
			<div class="panel panel-white">
				<div class="panel-heading">
					<h4 class="panel-title">
						<span class="title-text">电影座位详情</span>
					</h4>
					<div class="panel-tools">
						<div class="dropdown">
							<a data-toggle="dropdown" class="btn btn-xs dropdown-toggle btn-transparent-grey">
								<i class="fa fa-cog"></i>
							</a>
							<ul class="dropdown-menu dropdown-light pull-right" role="menu">
								<li>
									<a class="panel-collapse collapses" href="#"><i class="fa fa-angle-up"></i> <span>折叠</span> </a>
								</li>
								<li>
									<a class="panel-expand" href="#">
										<i class="fa fa-expand"></i> <span>全屏</span>
									</a>
								</li>
							</ul>
						</div>
						<a class="btn btn-xs btn-link panel-close" href="#">
							<i class="fa fa-times"></i>
						</a>
					</div>
				</div>
				<div class="panel-body">
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">ID</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" id="ceat-id" />
					    </div>				    
				  	</div>		
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">影院名称</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" id="filmName" />
					    </div>				    
				  	</div>	
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">影片名称</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" id="movieName" />
					    </div>				    
				  	</div>
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">排期名称</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" id="schedueName" />
					    </div>				    
				  	</div>				  							  					  					  				
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">座位图片_可选</label>
					    <div class="col-sm-5">
					    	<img id="seat-able" src="" alt="">
					    </div>
				  	</div>
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">座位图片_已选</label>
					    <div class="col-sm-5">
					    	<img id="seat-choosen" src="" alt="">
					    </div>
				  	</div>				  	
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">座位图片_已售</label>
					    <div class="col-sm-5">
					    	<img id="seat-sold" src="" alt="">
					    </div>
				  	</div>	
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">创建时间</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" id="creatTime" />
					    </div>				    
				  	</div>					  	
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">更新时间</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" id="updateTime" />
					    </div>				    
				  	</div>					  	
					<div class="form-group panel-cont">
					    <label class="col-sm-2 control-label">状态</label>
					    <div class="col-sm-5">
					      <input type="text" class="form-control" id="status" />
					    </div>				    
				  	</div>					  	
				</div>
			</div>
		</div>
	</div>
</form>
<script>
	/*************************************变量******************************************/
	var username = GetQueryString("username");    // 用户姓名
	var token = MXCookie.get("token",token);      // 登陆token  	

	/*************************************事件******************************************/	
	/*上传图片*/
	addUploadImg();


	/*************************************函数******************************************/

	// 获取信息
	$.ajax({
		url: localStorage.grobalUrl + "/seat/lookPic",
		type: "post",
		data:{
			username: username,
			token: token,
			picId: $(".pageAdd").attr("data-id")
		},
		success: function(data){
			console.log(data);
			var dataVal = data[0];
			$("#ceat-id").val(dataVal.cinema_id);
			$("#filmName").val(dataVal.cinema_name);
			$("#movieName").val(dataVal.film_name);
			$("#schedueName").val(dataVal.schedule_name);
			$("#seat-able").attr("src",dataVal.pic_pickable);
			$("#seat-choosen").attr("src",dataVal.pic_picked);
			$("#seat-sold").attr("src",dataVal.pic_sold);
			$("#creatTime").val(dataVal.create_time);
			$("#updateTime").val(dataVal.update_time);
			if(dataVal.status == "ENABLE"){
				$("#status").val("启用");
			}else{
				$("#status").val("关闭");
			}

		},
		error: function(err){
			console.log(err);
		}
	});
	
</script>
